<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Your description goes here" />
<meta name="keywords" content="your,keywords,goes,here" />
<link rel="stylesheet" type="text/css" media="screen,projection"
	href="<%=basePath%>css/blue/style_screen.css" />
<link rel="stylesheet" type="text/css" media="print"
	href="<%=basePath%>css/blue/style_print.css" />
<title>首页</title>
<style type="text/css">
body {
	font: "宋体";
	font-size: 12px;
}

a:link,a:visited {
	font-size: 12px;
	color: #666;
	text-decoration: none;
}

a:hover {
	color: #ff0000;
	text-decoration: underline;
}

#Tab {
	margin: 0 auto;
	width: 400px;
	height:320px;
	border: 1px solid #BCE2F3;
}

.Menubox {
	height: 28px;
	border-bottom: 1px solid #64B8E4;
	background: #E4F2FB;
}

.Menubox ul {
	list-style: none;
	margin: 7px 20px;
	padding: 0;
	position: absolute;
}

.Menubox ul li {
	float: left;
	background: #64B8E4;
	line-height: 20px;
	display: block;
	cursor: pointer;
	width: 70px;
	text-align: center;
	color: #fff;
	font-weight: bold;
	border-top: 1px solid #64B8E4;
	border-left: 1px solid #64B8E4;
	border-right: 1px solid #64B8E4;
}

.Menubox ul li.hover {
	background: #fff;
	border-bottom: 1px solid #fff;
	color: #147AB8;
}

.Contentbox {
	clear: both;
	margin-top: 0px;
	border-top: none;
	height: 181px;
	padding-top: 8px;
	height: 100%;
}

.Contentbox ul {
	list-style: none;
	margin: 7px;
	padding: 0;
}

.Contentbox ul li {
	line-height: 24px;
	border-bottom: 1px dotted #ccc;
}
</style>
<script type="text/javascript">
function setTab(name,cursel,n){
	for(i=1;i<=n;i++){
		var menu=document.getElementById(name+i);
		var con=document.getElementById("con_"+name+"_"+i);
		menu.className=i==cursel?"hover":"";
		con.style.display=i==cursel?"block":"none";
	}
}
</script>
</head>
<body>
	<div class="page-container-1">
		<div class="site-name">
			<p class="title">
				<a href="<%=basePath%>index.html">陕西省人才发展网</a>
			</p>
			<p class="subtitle">
				<a href="<%=basePath%>index.html"></a>
			</p>
		</div>
		<div class="site-slogan-container">
			<div class="site-slogan">
				<p class="title">陕西省人才发展网</p>
			</div>
		</div>
		<!-- Header banner -->
		<div>
			<img class="img-header" src="./img/header.jpg" alt="" />
		</div>
		<!-- Navigation Level 2 -->
		<div class="nav2">
			<ul>
				<li><a href="<%=basePath%>index.html">主页</a></li>
				<li><a href="<%=basePath%>rencai.html" class="selected">人才</a></li>
				<li><a href="<%=basePath%>guide.html">指导类</a></li>
				<li><a href="<%=basePath%>adv.html">广告类</a></li>
				<li><a href="<%=basePath%>bbs.html">论坛</a></li>
				<c:if test="${not empty user }">
					<li><a
						href="<%=basePath%>servlet/InitServlet?id=${user.id}&method=personCenter">个人中心</a></li>
				</c:if>
				<c:if test="${empty user }">
					<li><a href="<%=basePath%>login.html">登陆</a><a
						href="<%=basePath%>register.html">注册</a></li>
				</c:if>
				<c:if test="${not empty user }">
					<li>欢迎你:${user.name}</li>
				</c:if>
			</ul>
		</div>
		<div class="content1" style="margin-top: 30px;">
			<div style="width: 460px;height: 40px;margin-top: 10px;">
				<form action="<%=basePath %>servlet/SearchServlet?m=rencai"
					method="post">
					<table>
						<tr>
							<td><label style="font-weight: bold;font-family: '宋体';font-size: 15px;">关键字搜索</label> <select
								name="search" style="height: 30px;">
									<option value="1">按标题搜索</option>
									<option value="2">按内容搜索</option>
									<option value="3">按时间搜索</option>
							</select> <input type="text" name="title" placeholder="请输入关键字"  style="height: 30px;"/> <input
								type="submit" value="搜索" id="btn" style="height: 30px;background:#3358FF;" /></td>
						</tr>
					</table>
				</form>
			</div>
			<!-- Start -->

			<div id="Tab" style="margin-top:30px; ">
				<div class="Menubox">
					<ul>
						<li id="menu1" onmouseover="setTab('menu',1,5)" class="hover">科技企业家</li>
						<li id="menu2" onmouseover="setTab('menu',2,5)">产学研人才</li>
						<li id="menu3" onmouseover="setTab('menu',3,5)">院士工作</li>
						<li id="menu4" onmouseover="setTab('menu',4,5)">技能人才</li>
						<li id="menu5" onmouseover="setTab('menu',5,5)">三秦人才</li>
					</ul>
				</div>
				<div class="Contentbox">
					<div id="con_menu_1" class="hover">
						<ul>
							<c:forEach items="${kj}" var="p">
								<li><a style="text-decoration: NONE;font-size:15px;"
									href="<%=basePath%>servlet/CKServlet?method=rencai&id=${p.id}"
									title="${p.title }">${p.title }</a>&nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size:15px;">${p.time }</font></li>
								<br />
							</c:forEach>
						</ul>
					</div>
					<div id="con_menu_2" style="display:none">
						<ul>
							<c:forEach items="${cx}" var="p">
						<li style="list-style-type:none;"><a
							style="text-decoration: NONE;font-size:15px;"
							href="<%=basePath%>servlet/CKServlet?method=rencai&id=${p.id}"
							title="${p.title }">${p.title }</a>&nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size:15px;">${p.time }</font></li>
						<br />
					</c:forEach>
							
						</ul>
					</div>
					<div id="con_menu_3" style="display:none">
						<ul>
							<c:forEach items="${ys}" var="p">
						<li style="list-style-type:none;"><a
							style="text-decoration: NONE;font-size:15px;"
							href="<%=basePath%>servlet/CKServlet?method=rencai&id=${p.id}"
							title="${p.title }">${p.title }</a> &nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size:15px;">${p.time }</font></li>
						<br />
					</c:forEach>
						</ul>
					</div>
					<div id="con_menu_4" style="display:none">
						<ul>
							<c:forEach items="${jn}" var="p">
						<li style="list-style-type:none;"><a
							style="text-decoration: NONE;font-size:15px;"
							href="<%=basePath%>servlet/CKServlet?method=rencai&id=${p.id}"
							title="${p.title }">${p.title }</a>&nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp; <font style="font-size:15px;">${p.time }</font></li>
						<br />
					</c:forEach>
						</ul>
					</div>
					<div id="con_menu_5" style="display:none">
						<ul>
							<c:forEach items="${sq}" var="p">
						<li style="list-style-type:none;"><a
							style="text-decoration: NONE;font-size:15px;"
							href="<%=basePath%>servlet/CKServlet?method=rencai&id=${p.id}"
							title="${p.title }">${p.title }</a> &nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;
									 &nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size:15px;">${p.time }</font>
						<li><br />
					</c:forEach>
						</ul>
					</div>
				</div>
			</div>
			<!-- End -->
		</div>
		<div class="sidebar" style="margin-top: 30px; width: 290px;">
			<p>
				<font style="font-size:15px; font-weight: bold;">热点新闻</font>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a style="color: gray;text-decoration: none;" title="更多" href="<%=basePath%>servlet/AllNewsServlet?m=allnews">>>>更多</a></p>
			
			<div style="margin-top: 20px;">
				<c:forEach items="${zxnl}" var="zx">
					<li style="list-style-type:none;"><a
						style="text-decoration: NONE"
						href="<%=basePath %>servlet/CKServlet?method=zxnews&id=${zx.id}"
						title="${zx.title}" target="_blank"><font
							style="font-size:15px; ">${fn:substring(zx.title,1,16)}......</font></a>
					</li>
					<br />
				</c:forEach>
			</div>
		</div>
		<!-- FOOTER -->
		<div class="footer">
			<jsp:include page="public/footer.jsp"></jsp:include>
			<p>
				<b>Copyright &copy; 2006 Your Company | All Rights Reserved</b>
			</p>
		</div>
	</div>
</body>
</html>
